<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    
</body>
<script>
    let Vue = {
        msg:"xiaoxi"
    }
    console.log(Vue.msg);
    Vue.b = "新属性";
    console.log(Vue.b);
    // get 方法
    Object.defineProperty(Vue,"c",{
        get:function(){
            return "c的值";
        },
        set:function(newVal){
            this.b = newVal;
        }
    })
    console.log(Vue.c);
    Vue.c = "新的b值";
    // console.log(Vue.b);

</script>
</html>